#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  /* 字符串转基本数据类型
   */
  char s1[] = "123456";
  char s2[] = "111";
  char s3[] = "12.34";
  char s4[] = "a";
  printf("%d\n%d\n%lf\n%c\n", atoi(s1), atoi(s2), atof(s3), s4[0]);
  return EXIT_SUCCESS;
}
